Adwaita: special case flat headerbar buttons
authorJakub Steiner <jimmac@gmail.com>
Thu, 10 Dec 2020 13:24:29 +0000 (14:24 +0100)
committerJakub Steiner <jimmac@gmail.com>
Thu, 10 Dec 2020 13:24:29 +0000 (14:24 +0100)
- make sure the hovers and pushed states are legible on a tintend headerbar

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3427

gtk/theme/Adwaita/_common.scss

index 1d2f8b6396f06a220bb5db143d6e5eb06d90d091..845582650d04c4d79976e098734af05dd17b1fc0 100644 (file)
@@ -1389,11 +1389,17 @@ windowcontrols {
 
     @extend %button_basic_flat;
 
+
     border-radius: 9999px;
     padding: 6px;
     margin: 0 2px;
     min-width: 0;
     min-height: 0;
+    &:hover {
+      //special case hover colors inside a headerbar
+      @include button(undecorated-hover,$c:$headerbar_bg_color);
+    }
+    &:active { @include button(undecorated-active,$c:$headerbar_bg_color); }
   }
 }